package org.jeecg.chase.modules.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: adh_coupon_order
 * @Author: jeecg-boot
 * @Date: 2022-03-05
 * @Version: V1.0
 */
@Data
@TableName("adh_coupon_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "adh_coupon_order对象", description = "adh_coupon_order")
public class AdhCouponOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /**
     * 优惠券订单号
     */
    @Excel(name = "优惠券订单号", width = 15)
    @ApiModelProperty(value = "优惠券订单号")
    private java.lang.String couponNo;
    /**
     * 商家ID
     */
    @Excel(name = "商家ID", width = 15)
    @ApiModelProperty(value = "商家ID")
    private java.lang.String merchId;
    /**
     * 商家名称
     */
    @Excel(name = "商家名称", width = 15)
    @ApiModelProperty(value = "商家名称")
    private java.lang.String merchName;
    /**
     * 会员手机号
     */
    @Excel(name = "会员手机号", width = 15)
    @ApiModelProperty(value = "会员手机号")
    private java.lang.String userPhone;
    /**
     * 会员昵称
     */
    @Excel(name = "会员昵称", width = 15)
    @ApiModelProperty(value = "会员昵称")
    private java.lang.String userName;
    /**
     * 会员ID
     */
    @Excel(name = "会员ID", width = 15)
    @ApiModelProperty(value = "会员ID")
    private java.lang.String userId;
    /**
     * 优惠券名称
     */
    @Excel(name = "优惠券名称", width = 15)
    @ApiModelProperty(value = "优惠券名称")
    private java.lang.String couponName;
    /**
     * 优惠券类型
     */
    @Excel(name = "优惠券类型", width = 15)
    @ApiModelProperty(value = "优惠券类型")
    private java.lang.Integer couponType;
    /**
     * 优惠信息
     */
    @Excel(name = "优惠信息", width = 15)
    @ApiModelProperty(value = "优惠信息")
    private BigDecimal couponDiscount;

    /**
     * 有效开始时间
     */
    @Excel(name = "有效开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效开始时间")
    private java.util.Date validBeginTime;
    /**
     * 有效结束时间
     */
    @Excel(name = "有效结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效结束时间")
    private java.util.Date validEndTime;
    /**
     * 提前购买价格
     */
    @Excel(name = "提前购买价格", width = 15)
    @ApiModelProperty(value = "提前购买价格")
    private java.math.BigDecimal advancePurchasePrice;
    /**
     * 使用规则说明
     */
    @Excel(name = "使用规则说明", width = 15)
    @ApiModelProperty(value = "使用规则说明")
    private java.lang.String useDesc;
    /**
     * 使用状态 0 未使用 1 已核销 2 已过期
     */
    @Excel(name = "使用状态 0 未使用 1 已核销 2 已过期", width = 15)
    @ApiModelProperty(value = "使用状态 0 未使用 1 已核销 2 已过期")
    private java.lang.Integer useStatus;
    /**
     * 领取时间
     */
    @Excel(name = "领取时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "领取时间")
    private java.util.Date receiveDate;
    /**
     * 核销时间
     */
    @Excel(name = "核销时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "核销时间")
    private java.util.Date checkDate;
    /**
     * 核销手机号
     */
    @Excel(name = "核销手机号", width = 15)
    @ApiModelProperty(value = "核销手机号")
    private java.lang.String checkUser;

    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;

    @ApiModelProperty(value = "优惠券Id")
    private java.lang.String couponId;

    private String bmName;
    private String bmEmail;
    private String bmPhone;
    private String bmRemark;
}
